package com.runa.monitor.platinterface.netservice.equipment.ex;

import com.runa.monitor.platinterface.backwork.function.TaskFunction;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.jetbrains.annotations.NotNull;

@Data
@AllArgsConstructor
public class ExBeanForMethod implements Comparable<ExBeanForMethod> {

    private Integer id = 0;
    private String netSerial;
    private TaskFunction function;


    private String methodName;
    private Object parameterOne;//此处单节点对象,瑞纳为list
    private Object parameterTwo;
    private Object parameterThree;
//    private Object parameterFour;


//    public ExBean(int id, Object object) {
//        this.object = object;
//        this.id = id;
//    }

    @Override
    public int compareTo(@NotNull ExBeanForMethod exBean) {
//        return this.id - exBean.getId();
        return exBean.getId() - this.id;
    }

}
